﻿<Window x:Name="Settings" x:Class="TrafficWatcher.Views.SettingsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Settings" Height="340" Width="485" ResizeMode="NoResize">
    <Grid DataContext="{Binding Settings, Mode=OneWay, Source={StaticResource Locator}}">
        <ComboBox x:Name="cbMapsProvider" HorizontalAlignment="Left" Margin="11,36,0,0" VerticalAlignment="Top" Width="189" ItemsSource="{Binding DirectionsProviders}" DisplayMemberPath="Name" SelectedItem="{Binding CurrentDirectionsProvider}"/>
        <Label Content="Maps Provider" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Padding="0,5,5,5"/>
        <Label Content="Main" HorizontalAlignment="Left" Margin="10,79,0,0" VerticalAlignment="Top" Padding="0,5,5,5"/>
        <Label Content="A" HorizontalAlignment="Left" Margin="10,101,0,0" VerticalAlignment="Top" Padding="0,5,5,5" RenderTransformOrigin="0.2,-1.192"/>
        <Label Content="B" HorizontalAlignment="Left" Margin="11,127,0,0" VerticalAlignment="Top" Padding="0,5,5,5"/>
        <CheckBox x:Name="chbRunAtWindowsStartup" Content="Run the Program at Windows Start-up" HorizontalAlignment="Left" Margin="10,191,0,0" VerticalAlignment="Top" IsChecked="{Binding DoesTheApplicationRunAtStartup}"/>
        <TextBox x:Name="tbStart" HorizontalAlignment="Left" Height="23" Margin="28,105,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="343" RenderTransformOrigin="0.4,-2.217" Text="{Binding Path=Start, UpdateSourceTrigger=PropertyChanged}"/>
        <TextBox x:Name="tbFinish" HorizontalAlignment="Left" Height="23" Margin="28,131,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="343" Text="{Binding Path=Finish, UpdateSourceTrigger=PropertyChanged}"/>
        <Button x:Name="btnOK" Content="OK" HorizontalAlignment="Left" Margin="303,246,0,0" VerticalAlignment="Top" Width="75" Command="{Binding SaveCommand}"/>
        <Button x:Name="btnCancel" Content="Cancel" HorizontalAlignment="Left" Margin="383,246,0,0" VerticalAlignment="Top" Width="75" Command="{Binding CancelCommand}"/>
        <Label Content="The information about this program is at" HorizontalAlignment="Left" Margin="172,271,0,0" VerticalAlignment="Top"/>
        <Separator HorizontalAlignment="Left" Height="17" Margin="10,224,0,0" VerticalAlignment="Top" Width="448"/>
        <Label HorizontalAlignment="Left" Margin="391,271,0,0" VerticalAlignment="Top" Width="67">
            <Hyperlink DataContext="{Binding OpenProgramHomepage, Mode=OneWay}">homepage</Hyperlink>
        </Label>

    </Grid>
</Window>
